<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <script src="js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="__STATIC__admin/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" charset="utf-8">
      $(function(){
      	$('#send').click(function(){
      		user = $('.user').val();
      		pw = $('.pw').val();
			$.ajax({
			  type: 'POST',
			  url: 'http://192.168.21.85/0423/project/tpcms/index.php/phone/user/loginajax',
			  data: 'user='+user+"&pw="+pw,
			  dataType: 'json',
			  timeout: 30000,
			  success: function(data){
			  	alert(data.error);
			  }		 
			})
      	})

      })
					

					
					
			

    </script>
    
</head>
		
<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-icon mui-icon-left-nav mui-pull-left"></a>
			<a href="#offCanvas" class="mui-icon mui-icon-bars mui-pull-right"></a>
			<h1 class="mui-title">用户登录</h1>
		</header>
		
	<div class="mui-content-padded">
	
	<form class="mui-input-group" style="margin-top:50px ;">
		<div class="mui-input-row">
			<label>用户名</label>
			<input type="text" class="user" placeholder="" >
		</div>
		<div class="mui-input-row">
			<label>密    码</label>
			<input type="password" class="mui-input-clear pw" placeholder="">
		</div>
	
		<div class="mui-button-row">
			<button class="mui-btn mui-btn-primary" id="send" onclick="return false;">确认</button>&nbsp;&nbsp;
			<button class="mui-btn mui-btn-primary" onclick="return false;">取消</button>
		</div>
	</form>
	
</div>
	
</body>
</html>